package principal;

import java.io.UnsupportedEncodingException;
import java.security.MessageDigest;
import java.security.NoSuchAlgorithmException;
//import dialogs.Main;;

public class Main {

	/**
	 * @param args
	 */
	public static void main(String[] args) {

		dialogs.Main main = new dialogs.Main();
		
		//Main main = new Main();
		
//		try {
//			System.out.println(main.getHash("df"));
//		} catch (NoSuchAlgorithmException e) { } catch (UnsupportedEncodingException e) { }
	}

	public byte[] getHash(String password) throws NoSuchAlgorithmException, UnsupportedEncodingException {
		MessageDigest digest = MessageDigest.getInstance("SHA-1");
		digest.reset();
		byte[] input = digest.digest(password.getBytes("UTF-8"));
		return input;
	}
}
